<?php
namespace app\index\controller;

use think\Db;

class Index
{
    public function index()
    {
        Db::connect('mysql://root:1234@127.0.0.1:3306/test#utf8');
        $sql="insert into test(test_test)values('111')";
        Db::execute($sql);
    }
}